/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package entidates;

/**
 *
 * @author Overpower
 */
public class PlanEstudio  implements IEntidad, Cloneable {
    // propiedades
    private Integer _idPlanEstudio;
    private Integer _idCarrera;
    private Byte _año;
    private Short _plan;
        
    @Override
    public Integer GetID() {
        return _idPlanEstudio;
    }

    @Override
    public void SetID(Integer id) {
        if( null == this._idPlanEstudio )
            this._idPlanEstudio = id;
    }

    public Integer GetIdCarrera() {
        return _idCarrera;
    }

    public void SetIdCarrera(Integer _idCarrera) {
        this._idCarrera = _idCarrera;
    }

    public Byte GetAño() {
        return _año;
    }

    public void SetAño(Byte _año) {
        this._año = _año;
    }

    public Short GetPlan() {
        return _plan;
    }

    public void SetPlan(Short _plan) {
        this._plan = _plan;
    }

    @Override
    public void Copiar(IEntidad entidad) {
        PlanEstudio _t = (PlanEstudio)entidad;
        _idPlanEstudio = _t._idPlanEstudio;
        _idCarrera = _t._idCarrera;
        _año = _t._año;
        _plan = _t._plan;
    }

    @Override
    public IEntidad Clonar() {
        PlanEstudio _clon = null;
        try
        {
            _clon = (PlanEstudio) super.clone();
        }
        catch(CloneNotSupportedException e )
        {
            
        }
        return _clon;
    }
   
}
